﻿using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RayDen.Library.Core.Primitives;

namespace RayDen.RayEngine.Engines.PathSpaceMLT
{
    public class MltEngine
    {
        public int MaxMutations = 100;
        public int MaxPaths= 65536;


        public RgbSpectrum Normalization;
        internal BlockingCollection<PathSpaceSample> Paths;

        private int tracedPaths;
        public MltEngine()
        {
            Paths = new BlockingCollection<PathSpaceSample>();
            tracedPaths = 0;
        }

        public void Add(PathSpaceSample sample)
        {
            if (Paths.Count < MaxPaths)
            {
                this.Paths.Add(sample);
            }            
        }

    }
}
